package proxy.static1;

import proxy.SmsService;

/**
 * @Author: DRevelation
 * @Date: 2021/3/31 17:28
 * 静态代理
 */
public class SmsProxy implements SmsService {

    private SmsService smsService;

    public SmsProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String msg) {
        System.out.println("======before method======");
        smsService.send(msg);
        System.out.println("======after method======");
        return msg;
    }
}
